package com.wmd102.opengldemo;

public class NativeInterface {

    static {
        System.loadLibrary("native-lib");
    }

    private static NativeInterface nativeInterface;
    public NativeInterface(){

    }
    public static NativeInterface getInstance(){
        if(nativeInterface == null){
            synchronized (NativeInterface.class){
                nativeInterface = new NativeInterface();
            }
        }
        return nativeInterface;
    }

    public native String native_GetLibVersion();
    public native void native_OnInit();
    public native void native_OnUnInit();
    public native void native_SetParamsInt(int paramType, int value);
    public native void native_SetImageData(int format, int width, int height, byte[] bytes);
    public native void native_OnSurfaceCreated();
    public native void native_OnSurfaceChanged(int width, int height);
    public native void native_OnDrawFrame();
}
